package com.orcsystem.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.orcsystem.common.utils.PageUtils;
import com.orcsystem.product.app.vo.AttrGroupRealationVo;
import com.orcsystem.product.app.vo.AttrRespVo;
import com.orcsystem.product.app.vo.AttrVo;
import com.orcsystem.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author aihs
 * @email aihs_work@163.com
 * @date 2020-04-29 14:16:13
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAtter(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, String type, Long catid);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteRelation(AttrGroupRealationVo[] vos);

    PageUtils getNoRelationAttr(Long attrGroupId, Map<String, Object> params);

    /**
     * 在当前ids 列表内 并且 检索类型 等于1 （被检索的标识）
     * @param attrIds
     * @return
     */
    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

